aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenLocalLoadTests]/[method:localLoadCompilesToLocalGet(org.shedlang.compiler.testing.snapshots.S...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-06-25 16:51:53 +0100
committerMichael Williamson <mike@zwobble.org>2023-06-25 16:51:53 +0100
commitf1a64f8ac893d69e80c04b55f37f12ce36a7d71e (patch)
treefe13944461092b7931ec7e0d77d3eb7d1423dc64 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenLocalLoadTests]/[method:localLoadCompilesToLocalGet(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parent3d054b45c3cc440e84ed65f04b36dbcb26c6f402 (diff)
Add WASM code gen for local-load instruction
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenLocalLoadTests]/[method:localLoadCompilesToLocalGet(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenLocalLoadTests]/[method:localLoadCompilesToLocalGet(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected30
1 files changed, 30 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenLocalLoadTests]/[method:localLoadCompilesToLocalGet(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenLocalLoadTests]/[method:localLoadCompilesToLocalGet(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
new file mode 100644
index 00000000..e47aa5cf
--- /dev/null
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenLocalLoadTests]/[method:localLoadCompilesToLocalGet(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -0,0 +1,30 @@
+
+module.wasm: file format wasm 0x1
+
+Section Details:
+
+Type[1]:
+ - type[0] () -> nil
+Function[1]:
+ - func[0] sig=0 <f>
+Code[1]:
+ - func[0] size=10 <f>
+Custom:
+ - name: "name"
+ - func[0] <f>
+ - func[0] local[0] <local__y__0>
+ - func[0] local[1] <local__x__0>
+ - func[0] local[2] <local__z__0>
+Custom:
+ - name: "linking"
+ - symbol table [count=1]
+ - 0: F <f> func=0 [ binding=global vis=default ]
+
+Code Disassembly:
+
+000026 func[0] <f>:
+ 000027: 01 7f | local[0] type=i32
+ 000029: 01 7f | local[1] type=i32
+ 00002b: 01 7f | local[2] type=i32
+ 00002d: 20 01 | local.get 1 <local__x__0>
+ 00002f: 0b | end \ No newline at end of file